<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script type="module">
	import Promise from "./index.js";
	const p = new Promise(function(resolve,reject){
		setTimeout(function(){
			reject(100);// 最后执行
		},1000)
	});
	p.then(function(value){
		console.log("成功回调",value);
	},function(reason){
		console.log("失败回调",reason)
	})
	
</script>
</html>